import request from '@/utils/request'

// 查询品德列表
export function listMorality(query) {
  return request({
    url: '/system/morality/list',
    method: 'get',
    params: query
  })
}

// 查询品德详细
export function getMorality(moralityId) {
  return request({
    url: '/system/morality/' + moralityId,
    method: 'get'
  })
}

// 新增品德
export function addMorality(data) {
  return request({
    url: '/system/morality',
    method: 'post',
    data: data
  })
}

// 修改品德
export function updateMorality(data) {
  return request({
    url: '/system/morality',
    method: 'put',
    data: data
  })
}

// 删除品德
export function delMorality(moralityId) {
  return request({
    url: '/system/morality/' + moralityId,
    method: 'delete'
  })
}
